package cn.uniquesoft.service.impl;

import org.springframework.stereotype.Service;
import cn.uniquesoft.service.base.BaseServiceImpl;
import cn.uniquesoft.vo.RoleVO;
import cn.uniquesoft.mapper.RoleMapper;
import cn.uniquesoft.service.IRoleService;

//系统角色表 服务接口实现
@Service
public class RoleServiceImpl extends BaseServiceImpl<RoleVO> implements IRoleService {

	private RoleMapper roleMapper;

	public RoleServiceImpl(RoleMapper roleMapper) {
		super();
		this.baseMapper = roleMapper;
		this.roleMapper = roleMapper;
	}

	@Override
	public RoleVO findOneRoleMenuByiroleid(RoleVO item) {
		return this.roleMapper.findOneRoleMenuByiroleid(item);
	}

	@Override
	public int insertOneRoleMenuByiroleid(RoleVO item) {
		return this.roleMapper.insertRoleMenu(item);
	}

	@Override
	public int updateOneRoleMenuByiroleid(RoleVO item) {
		return this.roleMapper.updateRoleMenu(item);
	}
}
